import * as THREE from 'three'

const scene = new THREE.Scene()

const cubeTextureLoader = new THREE.CubeTextureLoader().setPath('./textures/SkyBox/')

const envMapTexture = cubeTextureLoader.load([
  'px.jpg',
  'nx.jpg',
  'py.jpg',
  'ny.jpg',
  'pz.jpg',
  'nz.jpg',
])

// 添加背景天空盒
scene.background = envMapTexture
// 给所有物体添加默认环境贴图
scene.environment = envMapTexture

export default scene
